package cn.topcodes.tcsf.cms.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import java.util.Date;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 栏目表单
 * @author Unicorn
 * @date 2017-12-25 22:51:09
 */
@Data
public class SiteColumnForm implements Idable {
	
	private Long id;

	@NotNull(message = "名称不能为空")
	@Length(min = 0,max = 30,message = "名称长度为0~30个字符")
	private String name;
	
	@NotNull(message = "排序不能为空")
	private Integer sort;
	
	private Long parentId;
	
	@NotNull(message = "栏目类型不能为空")
	@Length(min = 0,max = 30,message = "栏目类型长度为0~30个字符")
	private String type;
	
	private Long catalogId;
	

}